# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
pkgname=pitivi
pkgver=2021.05
pkgrel=1
pkgdesc="Editor for audio/video projects using the GStreamer framework"
url="https://pitivi.org"
arch="all !s390x !riscv64" # missing gst-editing-services
license="LGPL-2.1-or-later"
depends="gsound gst-editing-services gst-libav gst-plugins-good-gtk
         gst-plugins-bad gst-plugins-good py3-gst libnotify libpeas
         py3-cairo py3-gobject3 py3-matplotlib py3-numpy"
makedepends="cmake gstreamer-dev py3-cairo-dev python3-dev intltool
             itstool meson"
checkdepends="appstream-glib"
source="https://download.gnome.org/sources/pitivi/${pkgver%.*}/pitivi-$pkgver.tar.xz"
builddir="$srcdir/"

build() {
	abuild-meson $pkgname-$pkgver build
	meson compile -C build
}

check() {
	meson test -C build --print-errorlogs
}

package() {
	DESTDIR="$pkgdir" meson install -C build
}
sha512sums="
3ecb571d501b634ca3a369d4020954cc0b2bc101ceb12bee74d6b38c9ca8f2bf15fe94030421c43503870128d8218548feca7d32cf25b4afcf610365784ca9bb  pitivi-2021.05.tar.xz
"
